<?php

declare(strict_types=1);

namespace App\Admin\Request\System\User;

use Newbie\NewbieFormRequest;

class SystemUserUpdateRequest extends NewbieFormRequest {
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize (): bool {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules (): array {
        return [
            'username' => 'require|max:20',
            'dept_id'  => 'require',
            'role_ids' => 'require'
        ];
    }
}
